//function showCandidateTooltip(candidate) {
//	
//	var cand = document.getElementById(candidate);
//	if(cand.style.display=="none" || cand.style.display=="") {
//		cand.style.display="block";
//	}
//}
//
//function hideCandidateTooltip(candidate) {
//	var cand = document.getElementById(candidate);
//	if(cand.style.display=="block") {
//		cand.style.display="none";
//	}
//}

function checkAll(checkname, exby) {
	var action = (exby.checked) ? true : false;
	var d = exby.form.elements[checkname];
	for (i = 0; i < d.length; i++) {
		d[i].checked = action;
	}
}

function showClearAll() {
	var clear = document.getElementById('clear_all');
	if(clear.style.visibility=="" || clear.style.visibility=="hidden"){
		clear.style.visibility="visible";
	}else{
		clear.style.visibility="hidden";
	}

}